﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CP.NLayer.Web.Mvc4.Common
{
    /// <summary>
    /// Exception wrapper, it's designed to filter our custom exceptions throw in the application.
    /// Can pass the system defined exception to the inner exception.
    /// </summary>
    public class MyException : Exception
    {
        public MyException()
            : base()
        {
        }

        public MyException(Exception innerException)
            : base(innerException.Message, innerException)
        {
        }
    }
}